package com.nny.alarm.edit.adapter;

import android.content.Context;

import com.nny.alarm.edit.DialAdapter;
import com.uxwine.skin.Skin;

public class HourAdapter extends DialAdapter
{

	public HourAdapter(Context ctx, int hour)
	{
		super(ctx);
		mnMax = 24;
		setPosition(hour);
	}
	
	@Override
	public String getMarkText(int index)
	{
		return (index) + "";
	}

	@Override
	public int getMarkCount()
	{
		return 24;
	}

	@Override
	public int getBtnDrawable()
	{
		return Skin.getDrawable(mCtx, "dial_nav_hour");
	}

	@Override
	public int getDialDrawable()
	{
		return Skin.getDrawable(mCtx, "dial_mark_24");
	}

	@Override
	public long getValue(int position)
	{
		return position;
	}
}
